package frame.networks.viewers.viewer;

import javax.swing.Icon;

import model.components.nodes.node.Node;
import org.apache.commons.collections15.Transformer;

public class NodeIconTransformer implements Transformer< Node, Icon >
{
	@Override
	public Icon transform( Node node )
	{
		if( node.isSelected() )
			return node.getGreenIcon();
		else
			return node.getGreyIcon();
	}

}
